package com.itbaizhan.openhis.doctor.feign;

import com.itbaizhan.openhis.vo.AjaxResult;
import jakarta.validation.constraints.NotEmpty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("his-system-service")
public interface UserFeignService {


    /**
     * 根据部门id查询
     * @param deptId
     * @return
     */
    @GetMapping("/system/user/getUserById")
    AjaxResult getUserByDeptId(@RequestParam(value = "deptId",required = false) Long deptId);




    @GetMapping("/system/user/queryUsersNeedScheduling")
    AjaxResult queryUsersNeedScheduling( @RequestParam("userId")  Long userId ,@RequestParam("deptId") Long deptId);


    /**
     * 根据id查询科室信息
     * @param deptId
     * @return
     */
    @GetMapping("/system/dept/getDeptById/{deptId}")
    AjaxResult getDeptById(@PathVariable("deptId")Long deptId);


    /**
     * 查询所有科室
     * @return
     */
    @GetMapping("/system/dept/getDeptById/selectAllDept")
    AjaxResult selectAllDept();



    @PostMapping("/system/dept/updateDeptRegNumber")
    AjaxResult updateDeptRegNumber(@RequestParam("deptId")Long deptId, @RequestParam("i") int i);
}
